import { ElButton } from "element-plus";
import { defineComponent } from "vue";

export default defineComponent({
    props: {
        msg: String
    },
    emits: ['myClick'],
    methods: {
        buttonClickHandler() {
            this.$emit('myClick', '单击参数');
        }
    },
    render() {
        return (<div>属性测试：{this.msg}<ElButton onClick={this.buttonClickHandler}>{() => '点击'}</ElButton></div>);
    }
})